package com.zhuiyun.project.api.recipe.service;

import com.zhuiyun.project.api.recipe.entity.Recipe;
import com.zhuiyun.project.api.recipe.model.RecipeModel;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.springframework.web.multipart.MultipartFile;

public interface RecipeService {
    CommonResult getRevipeByPage(RecipeModel recipeModel, PageRequest pageRequest);

    CommonResult addRecipe(RecipeModel recipeModel, MultipartFile file);

    CommonResult updateRecipe(RecipeModel recipeModel, MultipartFile file);

    CommonResult deleteRecipe(Integer id);
}
